﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UserInterface
{
    public partial class HelpForm : Form
    {
        public HelpForm()
        {
            InitializeComponent();
        }

        private void lnk_lbl_start_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_simul_text.Text = "Step1: Place at least one Crossing on the grid\nStep2: Press the start button";
        }

        private void lnklbl_stop_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_simul_text.Text = "Step1: Simulation is either running or paused\nStep2: Click the stop button to stop the simulation and reset the Crossings";
        }

        private void lnklbl_pause_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_simul_text.Text = "Step1: Simulation is running\nStep2: Click pause to simply pause the simluation.\n  * Nothing visual is reseted";
        }

        private void lnklbl_place_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_grid_text.Text = "Step1: Click on a crossing and then click somewhere on the grid to place it.";
        }

        private void lnklbl_move_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_grid_text.Text = "Step1: Click on the edit button\nStep2: Click the crossing you want to Move\nStep3: Click on an empty grid cell";
        }

        private void lnklbl_remove_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_grid_text.Text = "Step1: Click on the delete button\nStep2: Click on the crossing you want to remove";
        }

        private void lnklbl_value_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_carStream_text.Text = "Cars are added automatically when the simulation starts, on lanes that are not connected.\n";
            this.lbl_carStream_text.Text += "\n  To byPass that, before you start the simulation, simply click on the car button.";
            this.lbl_carStream_text.Text += "\n  To add cars independently from the generator.\n click the car button (after you start the simulation).";
        }

        private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_carStream_text.Text = "Step1: Select the number of cars per minute to be generated\n by sliding the track bar located underneath the car button.";
            this.lbl_carStream_text.Text += "\nStep2:Once you select a value the simulation will automatically use the new value.\n * if you want the cars to be generated immediatelly, simply click the car button.";
        }

        private void linkLabel8_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_carStream_text.Text = "Please refer to: Edit Crossings-> 'Cars' section";
        }

        private void linkLabel12_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_edt_text.Text = "Step1: Click on the menu: Edit-> 'Edit Traffic Lights..'";
            this.lbl_edt_text.Text += "\nStep2: Select a group of traffic lights";
            this.lbl_edt_text.Text += "\nStep3: Type the new green interval of the traffic light and click Save.";

        }

        private void linkLabel10_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_edt_text.Text = "Step1: Click on the menu: Edit-> 'Edit Cars..'";
            this.lbl_edt_text.Text += "\nStep2: Select a lane";
            this.lbl_edt_text.Text += "\nStep3: Type the new maximum number of cars for this lane.";
            this.lbl_edt_text.Text += "\nStep4: Select the new speed (applies to all the cars in that lane).";
            this.lbl_edt_text.Text += "\nStep5: Click Save.";
        }

        private void linkLabel11_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {

            this.lbl_edt_text.Text = "Step1: Click on the menu: Edit-> 'Edit Pedestrians..'";
            this.lbl_edt_text.Text += "\nStep2: Select a Pedestrian lane.";
            this.lbl_edt_text.Text += "\nStep3: Type the new maximum number of pedestrians for this lane.";
            this.lbl_edt_text.Text += "\nStep4: Select the new speed (applies to all the pedestrians in that lane).";
            this.lbl_edt_text.Text += "\nStep5: Click Save.";
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.lbl_stats_text.Text = "Step1: Click on the menu: Tools-> 'Statistics'";
            this.lbl_stats_text.Text += "\nStep2: Select a crossing to view its statistics.";
        }

    }
}
